package com.wx.references;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * 工作bean
 * @description:
 * @author: wangxun
 * @createDate: 2021/12/31
 * @version: 1.0
 */
@Slf4j
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode

public class Worker {
    private long workerId;
    private String name;
    private String workItem;

    @Override
    protected void finalize() throws Throwable {
        log.info("该休息了");
    }
}
